package com.woniuxy.main.service.imp;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.woniuxy.main.mapper.Vi_user_coachMapper;
import com.woniuxy.main.pojo.Vi_user_coach;
import com.woniuxy.main.service.Vi_user_coachService;
@Service
@Transactional
public class Vi_user_coachServiceImp implements Vi_user_coachService {
	@Resource
	private Vi_user_coachMapper vi_user_coachMapper;

	public Vi_user_coachMapper getVi_user_coachMapper() {
		return vi_user_coachMapper;
	}

	public void setVi_user_coachMapper(Vi_user_coachMapper vi_user_coachMapper) {
		this.vi_user_coachMapper = vi_user_coachMapper;
	}

	@Override
	public List<Vi_user_coach> all() {
		// TODO Auto-generated method stub
		return vi_user_coachMapper.all();
	}

	@Override
	public List<Vi_user_coach> searchCoach(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return vi_user_coachMapper.searchCoach(map);
	}
	
	@Override
	public Vi_user_coach selectByUid(int uid) {
		
		return vi_user_coachMapper.selectByUid(uid);
	}

	@Override
	public List<Vi_user_coach> showCoachList(int page) {
		return vi_user_coachMapper.showCoachList(page);
	}

	@Override
	public int totalPage() {
		return vi_user_coachMapper.totalPage();
	}

}
